package com.eorchis.module.deptassignedinfo.ui.commond;

import java.io.Serializable;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.deptassignedinfo.domain.DeptAssignedInfo;
import com.eorchis.module.signupdept.domain.SignupDept;

import org.hibernate.validator.constraints.NotBlank;


/**
 * Title: DeptAssignedInfoValidCommond<br>
 * Description: 单位年度参学名额表ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Administrator
 * @createDate 2014-12-29
 * @version $Revision$
 */
public class DeptAssignedInfoValidCommond implements ICommond {
	
	private DeptAssignedInfo deptAssignedInfo;
	private String[] ids;//报名单位ids
	private Integer[] restrictPersonNums;//限报人数(和报名单位ids一一对应)
	public DeptAssignedInfoValidCommond(){
		deptAssignedInfo = new DeptAssignedInfo();
	}
	
	public DeptAssignedInfoValidCommond(DeptAssignedInfo deptAssignedInfo){
		this.deptAssignedInfo = deptAssignedInfo;
	}

	public Serializable getEntityID() {
		return deptAssignedInfo.getId();
	}

	@Override
	public IBaseEntity toEntity() {
		return deptAssignedInfo;
	}

	/**
	 * 获取主键
	 */	
	@NotBlank
	public String getId() {
		return deptAssignedInfo.getId();
	}
	/**
	 * 设置主键
	 */		
	public void setId(String id) {
		deptAssignedInfo.setId(id);
	}
	/**
	 * 获取年份
	 */	
	public Integer getYear() {
		return deptAssignedInfo.getYear();
	}
	/**
	 * 设置年份
	 */		
	public void setYear(Integer year) {
		deptAssignedInfo.setYear(year);
	}
	/**
	 * 获取限报人数
	 */	
	public Integer getRestrictPersonNum() {
		return deptAssignedInfo.getRestrictPersonNum();
	}
	/**
	 * 设置限报人数
	 */		
	public void setRestrictPersonNum(Integer restrictPersonNum) {
		deptAssignedInfo.setRestrictPersonNum(restrictPersonNum);
	}
	/**
	 * 获取部门id
	 */	
	@NotBlank
	public SignupDept getDepartment() {
		return deptAssignedInfo.getDepartment();
	}
	/**
	 * 设置部门id
	 */		
	public void setDepartment(SignupDept department) {
		deptAssignedInfo.setDepartment(department);
	}
	/**
	 * 获取培训班类型
	 */	
	public Integer getClassType() {
		return deptAssignedInfo.getClassType();
	}
	/**
	 * 设置培训班类型
	 */		
	public void setClassType(Integer classType) {
		deptAssignedInfo.setClassType(classType);
	}

	public String[] getIds() {
		return ids;
	}

	public void setIds(String[] ids) {
		this.ids = ids;
	}

	public Integer[] getRestrictPersonNums() {
		return restrictPersonNums;
	}

	public void setRestrictPersonNums(Integer[] restrictPersonNums) {
		this.restrictPersonNums = restrictPersonNums;
	}
	
}
